package com.gugee.ins.deploy.consumer.statistics;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories;

@SpringBootApplication

@ComponentScan({"com.gugee.**"})
@EnableJdbcRepositories(basePackages={"com.gugee.ins.**"})
@MapperScan({"com.gugee.ins.common.dal.mapper.**","com.gugee.common.task.dal.mapper.**"})
@NacosPropertySources({
        @NacosPropertySource(dataId = "db", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "kafka", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "internal-service", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-blogger-st", autoRefreshed = true,groupId = "gugee")
})
// @NacosPropertySource(dataId = "db.properties", autoRefreshed = true)
public class InsStDataApplication {
    public static void main(String[] args) {
        SpringApplication.run(InsStDataApplication.class, args);
    }
}